<?php

Secutiry::allow(
    array('HomeController' => array(
            'index' => array('required' => false, 'perfil' => array(PerfilAcesso::$administrador), 'pagina'=>'/home/seguranca'),
            'Erro'  => array('required' => false),
			'Seguranca' => array('required' => false)
        )
    )
);

class HomeController extends Controller {

    public function index() {
        echo '<pre>';
        print_r(Secutiry::getAllowed());
    }

    public function Erro() {
        self::render('error');
    }
    
    public function Seguranca() {
    	self::render('seguranca');
    }
}

?>
